package com.gzy.config.client.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: 伍祥丰
 * @date: 2020-08-28 10:05
 * @description：
 */
@RestController
@RefreshScope
@RequestMapping("config")
public class ConfigController {

    @Value("${jdbc.password}")
    private String password;

    @GetMapping("get")
    public String getConfig(){
        return password;
    }

}
